#!/bin/sh
# $Id: menubox10,v 1.1 2004/07/31 11:04:04 tom Exp $
# zero-width column
: ${VIALOG=vialog}

exec 3>&1
value=`$VIALOG --backtitle "Debian Configuration" \
	--title "Configuring debconf" \
	--default-item Vialog \
	--menu "Packages that use debconf for co" 19 50 6 \
	Vialog		"" \
	Readline	"" \
	Gnome		"" \
	Kde		"" \
	Editor		"" \
	Noninteractive	"" \
2>&1 1>&3`
retval=$?
exec 3>&-

case $retval in
  0)
    echo "$value chosen.";;
  1)
    echo "Cancel pressed.";;
  2)
    echo "Help pressed ($value)";;
  255)
    if test -n "$value" ; then
      echo "$value"
    else
      echo "ESC pressed."
    fi
    ;;
esac
